<div class="span9 well">
    <section id="home">
        <div class="page-header">
            <h3>Bimbingan Proposal Tesis</h3>
        </div>
        <?php echo $error ?>
        <?php echo form_open_multipart('mahasiswa/bimbingan_upload', 'class="bs-docs-example form-horizontal"') ?>
        <div class="control-group">
            <label class="control-label" for="inputJudul">Kode Tesis</label>
            <div class="controls">
                <span class="label label-success">{kode}</span>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputJudulInggris">BAB</label>
            <div class="controls">
                <select name="bab">
                    <option value="PROPOSAL BAB I">PROPOSAL BAB I</option>
                    <option value="PROPOSAL BAB II">PROPOSAL BAB II</option>
                    <option value="PROPOSAL BAB III">PROPOSAL BAB III</option>
                </select>
            </div>
        </div>
        <div class="control-group">
            <label class="control-label" for="inputProposal">Upload</label>
            <div class="controls">
                <div class="input-append">
                    <input class="span10" type="file" placeholder="Upload file" name="userfile" required>
                </div>
                <label>File yang diijinkan diupload berextensi .doc dan .docx</label>
            </div>
        </div>
        <input type="text" name="kode" class="hidden" value="{kode}"/>
        <div class="control-group">
            <div class="controls">
                <button type="submit" class="btn">Upload</button>
            </div>
        </div>
        <?php echo form_close() ?>
        <table class="table table-bordered table-striped">
            <thead align="center">
                <tr>
                    <th colspan="8" style="text-align: center; background-color:#610E54; color:white;">INFORMASI PROPOSAL TESIS</th>
                </tr>
                <tr>
                    <th>#</th>
                    <th>KODE TESIS</th>
                    <th>TANGGAL</th>
                    <th>BAB</th>
                    <th>STATUS</th>
                    <th>TGL KOREKSI</th>
                    <th>DOWNLOAD</th>
                    <th>PESAN</th>
                </tr>
            </thead>
            <tbody>
                <?php
                $no = 1;
                foreach ($tesis as $data):
                    ?>
                    <tr>
                        <td><?php echo $no ?></td>
                        <td><span class="label label-info"><?php echo $data->kode ?></span></td>
                        <td><?php echo $data->time ?></td>
                        <td><?php echo $data->bab ?></td>
                        <td><span class="label label-success"><?php echo $data->status ?></span></td>
                        <td><?php echo $data->koreksi ?></td>
                        <td>
    <?php echo anchor('mahasiswa/download/' . $data->kode . '/' . $data->hash, '<i class="icon-download"></i> Download') ?>
                        </td>
                        <td>
    <?php echo anchor('mahasiswa/message/' . $data->kode . '/' . $data->hash, '<button class="btn btn-mini" type="button">Lihat Pesan</button>') ?>
                        </td>
                    </tr>
                    <?php
                    $no++;
                endforeach;
                ?>
            </tbody>
        </table>
    </section>
</div>
</div>